package com.test.service;


import com.test.dao.BookDao;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/11/27 13:48
 */
@Service
public class BookService {

//    @Qualifier("bookDao1")
//    @Autowired(required = false)

    //    @Resource(name = "bookDao1")
    @Inject
    private BookDao bookDao;

    public void print() {
        System.out.println(bookDao);
    }
}
